<?php

declare(strict_types=1);

namespace App\CustHub\Model;

use Mine\MineModel;

/**
 * @property int $id 
 * @property int $uid 
 * @property int $main_uid 
 * @property int $scheme_id 方案ID
 * @property int $robot_id 机器人ID
 * @property string $user_id 用户微信ID
 * @property string $trigger_date 触发日期
 * @property int $begin_time 任务开始检测时间
 * @property array $push_tgt_cfg 
 * @property int $is_running 任务是否执行中
 * @property int $status 状态：0=待执行 1= 已完成 2=未完成
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class ChSmartPushSchemeTargetTask extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'ch_smart_push_scheme_target_task';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'uid', 'main_uid', 'scheme_id', 'robot_id', 'user_id', 'trigger_date', 'begin_time', 'push_tgt_cfg', 'is_running', 'status', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'uid' => 'integer', 'main_uid' => 'integer', 'scheme_id' => 'integer', 'robot_id' => 'integer', 'begin_time' => 'integer', 'push_tgt_cfg' => 'array', 'is_running' => 'integer', 'status' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
